<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html itemscope itemtype="http://schema.org/" xmlns="http://www.w3.org/1999/xhtml">
<head>
{include file="includeMeta.html"}

<meta itemprop="name" content="Ho Ho 图片">

<meta name="robots" content="FOLLOW,INDEX">
<meta name="keyword" content="{$oContent->name}图,美女图片,艺术照,搞笑图,色系,自拍,美图,无弹窗" />

<meta name="description" content="">

<title>{$oContent->name} - hohomm.com</title>


<link rel="stylesheet" type="text/css" href="{$HOME_URL}/css/content.css" />
<link rel="stylesheet" type="text/css" href="{$HOME_URL}/js/tools/highslide/highslide.css" />

<script type="text/javascript" src="{$HOME_URL}/js/tools/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="{$HOME_URL}/js/tools/highslide/highslide-full.packed.js"></script>
<script type="text/javascript" src="{$HOME_URL}/js/encode/extends.js"></script>
<script type="text/javascript" src="{$HOME_URL}/js/encode/request.js"></script>
<script type="text/javascript" src="{$HOME_URL}/js/encode/moreRequest.js"></script>

<script type="text/javascript">
	hs.graphicsDir = '{$HOME_URL}/js/tools/highslide/graphics/';
	hs.outlineType = 'rounded-white';
	hs.wrapperClassName = 'draggable-header';
	hs.showCredits = false;
</script>


<script type="text/javascript">
    var i = 1; //设置当前页数
    var isHaveData 	= true; 
    
	var HOME_URL	= "{$HOME_URL}";
    var contentId	= {$id};
    
    {literal}
    $(document).ready(function(){
	 	$(window).scroll(function () { 
			var docHeight = getDocumentHeight();
					
		  	if ($(window).scrollTop() + $(window).height() >= docHeight && isHaveData) {
		  		i++;
		  		
	 			$.getJSON(HOME_URL + "/contentJson.php",{'page':i,'id':contentId},function(json){
	                if(json){
	/*                 	console.info("page: " + i);
	                	console.info("requestPage: " + json.requestPage);
	 */                	
	                    var str = "<br />第" + json.requestPage + "页<br />";	                    
	                    var pageCount	= json.pageCount;
	                    var oImgs 		= json.oImages;
	                    
	                    str = "";
	 //               	console.info("pageCount: " + pageCount);
	
	                    $("#contentList").append(str);
	                	for(var k = 0, l = oImgs.length; k < l; k++) {
	                		var oImg = oImgs[k];
	                		
	                		
	                        str = "<a title='" + oImg.name + "' href='" + HOME_URL + "/details/" + contentId + "/" + oImg.id ;
	                        str += "/" + oImg.name + "'>";
					        str += " <img src='" + HOME_URL + "/img/content/0/144/" + oImg.id + "/xx." + oImg.extName;  
							str += "' class='img' border='0' alt='" + oImg.name + " - hohomm.com' title='点击放大' />";
							str += "</a>"; 
	                        
							
	                        $("#contentList").append(str);
	                	}
	
	//                    alert(i + ", page count: " + pageCount);
	
	                    if(i >= pageCount){
	                    	isHaveData = false;
	                    }                   
	                }else{ 
	//                    $(".nodata").show().html("别滚动了，已经到底了。。。"); 
	//                   return false; 
	                } 
	            }); 
	 			
	        }	  	
		  	
	    });
	});
    
    function getDocumentHeight() 
    {
		return Math.max(
    	      Math.max(document.body.scrollHeight, document.documentElement.scrollHeight),
    	      Math.max(document.body.offsetHeight, document.documentElement.offsetHeight),
    	      Math.max(document.body.clientHeight, document.documentElement.clientHeight)
    	);
    }
    
    function pause(numberMillis) {   
        var  now = new Date();   
        var  exitTime = now.getTime() + numberMillis;   
       	while (true){
           now = new Date();
           if(now.getTime() > exitTime)
           		return;  
        }  
	}
    
    
    {/literal}
</script>

{include file="includeGoogleAnalytics.html"}
</head>
<body>
	<div class="mainBox">
		{include file="includeTop.html"}
		{include file="includeSearchBox.html"}
		<div class="contentBox" id="contentBoxId">
			<div class="content">
				<div class="listBox">
					<div class="cont_list">
						<div class="titleBox">
							<div class="title"><h3 class="font16">{$oContent->name}</h3></div>
						</div>
						
						<div class="contentList" id="contentList">
							{foreach item=oImg from=$oImages}
						         <a title="{$oImg->name}" href="{$HOME_URL}/details/{$id}/{$oImg->id}/{$oImg->name}">
						             <img src="{$HOME_URL}/img/content/0/144/{$oImg->id}/{$oImg->id}.{$oImg->extName}"  
									          class="img"	border="0" alt="{$oImg->name} - hohomm.com" title="{$oImg->name} - 点击放大" />
								</a>
					         {/foreach}
						</div>
						
						{if $oRelatedImages|@count > 0}
						<div class="titleBox">
							<div class="title"><h3 class="font16">相关图片</h3></div>
						</div>
						
						<div class="contentList" id="contentList">
							{foreach item=oImg from=$oRelatedImages}
						         <a title="{$oImg->name}" href="{$HOME_URL}/details/{$id}/{$oImg->id}/{$oImg->name}">
						             <img src="{$HOME_URL}/img/content/0/144/{$oImg->id}/{$oImg->id}.{$oImg->extName}"  
									          class="img"	border="0" alt="{$oImg->name} - hohomm.com" title="{$oImg->name} - 点击放大" />
								</a>
					         {/foreach}
						</div>
						{/if}
						
						<div class="discliamer">
							声明：以上信息收集于网络，如有侵犯您的权益，烦请告之。hoho美网装立即删除，给您造成的不便，深表歉意。
						</div>
					</div>
				</div>
				
			</div>		
			<div class="clear"></div>
		</div>
		
		{include file="footer.html"}
	</div>

</body>
<script type="text/javascript">
var oContentBox = $("#contentBoxId");
var cHeight = oContentBox.innerHeight();

var screetHeight = document.body.scrollHeight;
var realCheight = screetHeight - 195;
if(realCheight > cHeight)
	oContentBox.height(realCheight);
	
$(window).resize(function(e){
	var oContentBox = $("#contentBoxId");
	var cHeight = oContentBox.innerHeight();

	var screetHeight = document.body.scrollHeight;
	var realCheight = screetHeight - 195;
	if(realCheight > cHeight)
		oContentBox.height(realCheight);
});	

</script>
</html>
